const mongoose = require('mongoose')

const Schema = new mongoose.Schema({
    username: String,
    pwd: {
        type: String,
        select: false
    },
    avatar: {
        type: String,
        default: ''
    },
    sex: {
        type: String,
        default: ''
    },
    desc: {
        type: String,
        default: ''
    },
    phone: {
        type: String,
        default: ''
    },
    email: {
        type: String,
        default: ''
    }
})
const Users = mongoose.model('users', Schema)
module.exports = {
    Users
}